package com.gitee.wsl.mathematics.function.active


/**
 * @param
 * @DATA
 * @Author LiDaPeng
 * @Description
 */
class ReLuTwo : ActiveFunction {
    override fun function(x: Float): Float {
        return if (x > 0) {
            x * 0.05f
        } else {
            x * 0.03f
        }
    }

    override fun functionG(out: Float): Float {
        return if (out > 0) {
            0.05f
        } else {
            0.03f
        }
    }
}
